import request from '@/plugins/request'

const api = async function (opts) {
  return request({
    ...opts,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      ...opts.headers
    },
    data: opts.data
  })
}
export default api
